<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="model.JsfCoach"%>
<%@page import="model.JsfStaff"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<title>教练信息</title>
</head>
<body>
<%
	JsfStaff staff = (JsfStaff) session.getAttribute("staff");
	int ps = -1;
	if( staff != null)
		ps = staff.getStatus();
	JsfCoach coach = (JsfCoach) session.getAttribute("coach");
	int ps2 = -1;
	if( coach != null)
		ps2 = coach.getStatus();
%>
<table class="table table-condensed table-hover table-striped">
				<s:iterator value="jsfcoach" var="var">
				<tr>
					<td width="150">教练ID：  <s:property value="#var.id" />
				</tr>
				<tr>
					<td width="150">教练姓名：  <s:property value="#var.name" />
				</tr>
				<tr>
					<td width="150">身份证：  <s:property value="#var.idCard" />
				</tr>
				<tr>
					<td width="150">地址：  <s:property value="#var.address" />
				</tr>
				<tr>
					<td width="150">出生日期：  <s:property value="#var.age" />
				</tr>
				<tr>
					<td width="150">性别：  
					<s:if test="%{#var.sex == 1}">
					男
					</s:if><s:else>
					 女
					 </s:else>
					</td>
				</tr>
				<tr>
					<td width="150">电话号码：  <s:property value="#var.phoneNum" />
				</tr>
				<%if( ps == -1 && ps2 != -1 ){%>
				<tr>
				<td width="150">
				<input type="button" value="编辑" class="btn btn-info"
				onclick="location.href ='coach_find?level=2';" />
				</td>
				</tr>
				<%  }%>  
				</s:iterator>
		</table>
</body>
</html>